flowbox: Don't emit selected-children-changed during destruction
authorDebarshi Ray <debarshir@gnome.org>
Mon, 12 Dec 2016 20:12:51 +0000 (21:12 +0100)
committerDebarshi Ray <debarshir@gnome.org>
Mon, 19 Dec 2016 17:05:59 +0000 (18:05 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=776012

gtk/gtkflowbox.c

index c7bd3290d7e75eb89d84e596efe83559cdfe4020..eb448795a4766de0fbed62f44206b443c15dc406 100644 (file)
@@ -3225,7 +3225,7 @@ gtk_flow_box_remove (GtkContainer *container,
   if (was_visible && gtk_widget_get_visible (GTK_WIDGET (box)))
     gtk_widget_queue_resize (GTK_WIDGET (box));
 
-  if (was_selected)
+  if (was_selected && !gtk_widget_in_destruction (GTK_WIDGET (box)))
     g_signal_emit (box, signals[SELECTED_CHILDREN_CHANGED], 0);
 }